#define _CRT_SECURE_NO_WARNINGS 1
#include<stdlib.h>
#include<iostream>

using namespace std;

class Date
{
public:
	Date(int year = 1900, int month = 6, int date = 10)
	{
		_year = year;
		_month = month;
		_date = date;
	}

	int _year;
	int _month;
	int _date;
};

bool operator<(const Date& x1, const Date& x2)
{
	if (x1._year < x2._year)
	{
		return true;
	}
	else if (x1._year == x2._year && x1._month < x2._month)
	{
		return true;
	}
	else if (x1._year == x2._year && x1._month == x2._month && x1._date < x2._date)
	{
		return true;
	}
	return false;
}

bool operator>(const Date& x1, const Date& x2)
{
	if (x1._year > x2._year)
	{
		return true;
	}
	else if (x1._year == x2._year && x1._month > x2._month)
	{
		return true;
	}
	else if (x1._year == x2._year && x1._month == x2._month && x1._date > x2._date)
	{
		return true;
	}
	return false;
}
int main()
{
	Date d1(2023, 12, 3);
	Date d2(2023, 6, 4);

	cout << (d1<d2) << endl;
	cout << (d1>d2) << endl;
	return 0;
}